Q3Vector3D_TransformQuaternion
You can use theQ3Vector3D_TransformQuaternion
function to transform a vector by a quaternion.
TQ3Vector3D *Q3Vector3D_TransformQuaternion ( const TQ3Vector3D *vector, const TQ3Quaternion *quaternion, TQ3Vector3D *result);
vector
- A three-dimensional vector.
quaternion
- A quaternion.
result
- On exit, a three-dimensional vector that is the result of transforming the specified vector by the specified quaternion.
DESCRIPTION
TheQ3Vector3D_TransformQuaternion
function returns, as its function result and in theresult
parameter, a three-dimensional vector that is the result of transforming the vector specified by thevector
parameter using the quaternion specified by thequaternion
parameter.